package com.bupt.uchouten.common.register;

import com.bupt.uchouten.common.entity.EarthquakeEntity;
import com.bupt.uchouten.common.util.Reference;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraft.world.level.Level;
import net.minecraftforge.registries.RegisterEvent;

public class UchoutenEntities {

    public static final EntityType<EarthquakeEntity> EARTHQUAKE_ENTITY = EntityType.Builder.of((EntityType<EarthquakeEntity> entityType, Level level) -> new EarthquakeEntity(level), MobCategory.MISC)
            // This one probably should be small
            .sized(1.0F, 1.0F)
            .clientTrackingRange(8)
            .build(new ResourceLocation(Reference.MODID, "earthquake").toString());


    private UchoutenEntities() { }

    public static void init(RegisterEvent event) {
        event.register(Registries.ENTITY_TYPE, helper -> {
            helper.register(new ResourceLocation(Reference.MODID, "earthquake"), EARTHQUAKE_ENTITY);
        });
    }
}
